import { ElNotification } from 'element-plus'

//success、warning、info、Error
function myNotice(type = "info", title = "没有标题哦", message = "没有内容哦") {
    ElNotification[type]({
        title,
        message,
        offset: 100,
    })
}

function isLogin() {
    //只验证是否有token
    if (window.localStorage.getItem('auth_token'))
        return true
    else
        return false
}


export {
    myNotice,
    isLogin
}